import request from '../utils/request'
export const addVisitor = ({ houseId, name, gender, mobile, visitDate }) => {
  return request.post('/visitor', { houseId, name, gender, mobile, visitDate })
}
export const getVisitor = (current, pageSize) => {
  return request.get('/visitor', {
    current,
    pageSize
  })
}

export const visitorDetail = (id) => {
  return request.get('/visitor/' + id)
}
export const visitorShare = (encryptedData) => {
  return request.get(`/visitor/share/${encryptedData}`)
}
